package com.gxar.quick.ar.server.db.mapper;

import com.gxar.quick.ar.server.db.model.OrderProductEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author linsy
 * @version 1.0
 * @created 2023/11/3 11:14
 */
@Mapper
public interface OrderProductMapper {

    /**
     * 根据订单id查询订单产品信息
     *
     * @param orderIdList 订单id
     * @return 产品信息
     */
    List<OrderProductEntity> findByOrderId(List<String> orderIdList);

    /**
     * 查询订单单个产品信息
     *
     * @param orderId 订单ID
     * @return 产品信息
     */
    OrderProductEntity findOneByOrderId(Long orderId);

}
